#ifndef MUSIC_H_
#define MUSIC_H_

#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <FMOD/fmod.h>

using namespace std;

class Music {
	public:
		Music(string *fileList, int nb, int ch = 1);
		Music(int ch = 1);
		void addMusic(string music);
		void setLoop();
		void setUnloop();
		void play(int music = 0);
		void switchPause();
		void next();
		void prev();
		void stop();
		bool is_Playing();
		void reset();
		~Music();

	private:
		FMOD_SYSTEM			*system;
		FMOD_RESULT			res;
		vector<FMOD_SOUND*>	musics;
		int					channel;
		int					pos;
};

#endif
